package com.snuproject.lgt.activity;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.View;
import android.widget.TabHost;

import com.snuproject.lgt.R;
import com.snuproject.lgt.select.*;

public class ActivitySelectTheme extends TabActivity{

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_select_theme);
        
        Resources res = getResources();
        TabHost tabHost = getTabHost();
        TabHost.TabSpec spec;

        Intent intent;
        
        intent = new Intent().setClass(this, ActivitySelect1.class);
        spec = tabHost.newTabSpec("1").setIndicator("Comics Theme").setContent(intent);
        tabHost.addTab(spec);
        
        intent = new Intent().setClass(this, ActivitySelect2.class);
        spec = tabHost.newTabSpec("2").setIndicator("Korean Theme").setContent(intent);
        tabHost.addTab(spec);
        
        intent = new Intent().setClass(this, ActivitySelect3.class);
        spec = tabHost.newTabSpec("3").setIndicator("Fantasy Theme").setContent(intent);
        tabHost.addTab(spec);
        
        tabHost.setCurrentTab(0);
    }

    public void onClickSelect(View view) {
    	Intent intent = new Intent(this, ActivityPhoto.class);

    	intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
    	startActivity(intent);
    }
}